#ifndef BOXTHREAD_H
#define BOXTHREAD_H

#include <QThread>
#include <QTcpSocket>
#include "boxserver.h"

class BoxThread : public QThread
{
	Q_OBJECT

public:
	BoxThread(int socketDescriptor, BoxServer *a_box_server, QObject *parent);
	~BoxThread();
	void handleIncomingConnection(int socketDescriptor);

protected:
	int m_socketDescriptor;
	//BoxServer *m_box_server;
	//QTcpSocket *m_front_socket;
	//QTcpSocket *m_back_socket;
    void run();
};

#endif // BOXTHREAD_H
